package com.matt.repository.base;

import com.matt.commons.dto.sso.StaffDTO;
import com.matt.commons.page.PagerQuery;
import com.matt.domain.courseV2.vo.ChildrenMonthRecordVO;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/9/28
 * *******************************
 */
public interface ChildrenMonthRecordV2Repository {

    List<Object[]>  findChildIdAvg(String childrenId ,String date);

    List<Object[]>  findChildIdByFoodCount(String childrenId ,String date);

    List<Object[]>  findChildIdByDietAmountAndDietCount(String childrenId ,String date,String food);

    List<Object[]> findChildrenMonthBody(String childrenId);

    Page<ChildrenMonthRecordVO> getList(StaffDTO staffDTO, String childrenId, Integer month, String classId, String name, PagerQuery pagerQuery);

    Page<ChildrenMonthRecordVO> getList1(String areaId, String childrenId, Integer month, String classId, String name, PagerQuery pagerQuery);

}
